package com.sunshine.spring.helloworld;

/**
 * 在bean.xml中注入HelloWorld
 */
public class HelloWorldService {

    /**
     *
     */
    private HelloWorld helloWorld;


    public void sayHello(){
        helloWorld.sayHello();
    }

    /**
     *
     */
    public HelloWorldService() {

    }

    public HelloWorld getHelloWorld() {
        return helloWorld;
    }

    public void setHelloWorld(HelloWorld helloWorld) {
        this.helloWorld = helloWorld;
    }
}
